package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 设备评论表(DeviceRemark)表实体类
 *
 * @author yxy
 * @since 2024-10-22 15:26:02
 */
@Data
@ApiModel("设备评论表")
@TableName(value = "tb_device_remark")
public class DeviceRemark extends Model<DeviceRemark> implements Serializable {
    private static final long serialVersionUID = 989706933949011854L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("上级id，默认为0")
    private Long pid;

    @ApiModelProperty("内容")
    private String remark;

    @ApiModelProperty("评论图片")
    private String remarkImg;

    @ApiModelProperty("评论图片")
    @TableField(exist = false)
    private List<String> remarkImgList;

    @ApiModelProperty("标签0还不错 1一般 2有图/视频 3追评 4好评 5差评")
    private Integer tag;

    @ApiModelProperty("设备id")
    private Long deviceId;

    @ApiModelProperty("评论者id")
    private Long observer;

    @ApiModelProperty("评论者名称")
    @TableField(exist = false)
    private String observerName;

    @ApiModelProperty("评论者手机号码")
    private String observerPhone;

    @ApiModelProperty("评分-10分为满分")
    private Double score;

    @ApiModelProperty("星级")
    private Integer starLevel;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty(value = "评价类型:0-设备，1-服务")
    private String remarkType;

    @ApiModelProperty(value = "创建用户")
    private String createUser;

    @ApiModelProperty(value = "修改用户")
    private String updateUser;

    @ApiModelProperty(value = "可用状态：0-不可用，1-可用")
    private String enable;

    @ApiModelProperty(value = "商户号")
    private Long merchantId;

    @ApiModelProperty("子节点数据")
    @TableField(exist = false)
    private List<DeviceRemark> childrenList;

    @ApiModelProperty(value = "订单Id")
    private Long orderId;

    @ApiModelProperty(value = "快递包装")
    private Integer expressPackage;

    @ApiModelProperty(value = "送货速度")
    private Integer deliverySpeed;

    @ApiModelProperty(value = "配送员服务")
    private Integer deliveryPersonnel;
}
